package com.gdit.zax.dao;

import java.util.List;

import com.gdit.zax.entitys.Group;
import com.gdit.zax.entitys.GroupAll;
import com.gdit.zax.entitys.GroupInfoSum;
import com.gdit.zax.entitys.GroupTeacher;
import com.gdit.zax.entitys.UserInfo;

public interface GroupDao {
	public List<GroupInfoSum> searchGroup(String key,int page,int onepagecount);
	
	public Group getGroupInfo(int gid);
	public Group getGroupInfo(int sid,String cname);
	
	public List<GroupAll> getMyGroup(int uid,int page,int onepagecount);
	public List<Group> listAllGroup(int page,int onepagecount);//列出所有分组
	public List<GroupTeacher> listAllGroupInfo(int page,int onepagecount);//列出所有分组详细信息
	
	public List<GroupAll> listAllGroupSub(int page,int onepagecount);//获取所有分组及其成员
	public List<GroupAll> listGroupSub(int gid,int page,int onepagecount);//获取分组内所有成员
	
	public List<GroupAll> listMyGroupSub(int uid,int page,int onepagecount);//获取学生
	
	public int addGroup(Group info);
	public boolean addGroup(int uid,int gid);
	public boolean exitGroup(int uid,int gid);//退出一个小组
	public boolean delGroup(int gid);//删除一个组
	
	public boolean isGroupExist(int sid,String name);
	
	public UserInfo getGroupTeacherInfo(int gid);
	
	public int getGroupSubSum(int gid);
	
	//获取班级排名
	public int getGroupRanking(int gid);
	
}
